var express = require('express');
var NewsRouter = express.Router();

const NewsController = require('../../controllers/web/NewsController');

// 查询所有新闻
NewsRouter.get("/webapi/news/list", NewsController.getList)
// /webapi/news/list/${route.params.id}
NewsRouter.get("/webapi/news/list/:id", NewsController.getList)
// /webapi/news/toplist?limit=4
NewsRouter.get("/webapi/news/toplist",NewsController.getTopList)


module.exports = NewsRouter;

